package com.qire.manhua.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.FrameLayout;

import com.qire.manhua.controller.ComicReaderController;
import com.qire.manhua.databinding.LayoutComicReaderMoreBarBinding;

import androidx.annotation.Nullable;

/**
 * 漫画阅读页底部更多菜单栏
 */
public class ComicReaderMoreBar extends FrameLayout {

    private final LayoutComicReaderMoreBarBinding bindingView;

    public ComicReaderMoreBar(Context context) {
        this(context, null);
    }

    public ComicReaderMoreBar(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public ComicReaderMoreBar(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        bindingView = LayoutComicReaderMoreBarBinding.inflate(LayoutInflater.from(context), this, true);
    }

    public void setComicReaderController(ComicReaderController comicReaderController) {
        bindingView.setComicReaderController(comicReaderController);
    }

}
